﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using QUT.Gppg;

namespace ConceptsParser.ParserTools
{
    /// <summary>
    /// Синтаксическая ошибка
    /// </summary>
    public class SyntaxError
    {
        private string errorText;

        public SyntaxError(string format, object[] args, LexLocation location)
        {
            errorText = "Синтаксическая ошибка. "
                + ParserToolsManager.LexLocation_ToString(location) 
                + ": " + String.Format(format, args);
        }

        public override string ToString()
        {
            return errorText;
        }
    }
}
